package com.alogic.textfilter.impl;

import com.alogic.textfilter.TextFilter;
import org.apache.commons.lang3.StringEscapeUtils;

/**
 * Java转义
 *
 * @since 1.6.13.10 [20200827 duanyy]
 */
public class JavaEscape extends TextFilter.Escape {
    @Override
    protected String escape(String value) {
        return StringEscapeUtils.escapeJava(value);
    }

    @Override
    protected String unescape(String value) {
        return StringEscapeUtils.unescapeJava(value);
    }
}